//
//  YouCollectionViewCell.m
//  14-UI-Gift
//
//  Created by Snow on 16/8/2.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "YouCollectionViewCell.h"

@implementation YouCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imageview = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(frame) / 2, CGRectGetHeight(frame))];
        _imageview.image = [UIImage imageNamed:@"u=2206266008,2817377051&fm=21&gp=0"];
        _imageview.layer.masksToBounds = YES;
        _imageview.layer.cornerRadius = 5;
        _labelOfTitle = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetWidth(frame) / 2, CGRectGetHeight(frame) / 3, CGRectGetWidth(frame) / 2, CGRectGetHeight(frame) / 3)];
        _labelOfTitle.text = @"李光洙";
        _labelOfTitle.font = [UIFont systemFontOfSize:20];
        
        _labelOfCOntent = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetWidth(frame) / 2, CGRectGetHeight(frame) / 3 * 2, CGRectGetWidth(frame), CGRectGetHeight(frame) / 3)];
        _labelOfCOntent.text = @"我爱长颈鹿~";
        [self addSubview:_imageview];
        [self addSubview:_labelOfTitle];
        [self addSubview:_labelOfCOntent];
    }
    return self;
}
@end
